import request from '@/api/request'

//数据列表
export function index(params) {
	return request({ url: '/app/Chanpin/index',method: 'post',data: params})
}



//修改排序开关
export function updateExt(params) {
	return request({ url: '/app/Chanpin/updateExt',method: 'post',data: params})
}



//添加
export function add(params) {
	return request({ url: '/app/Chanpin/add',method: 'post',data: params})
}



//修改
export function update(params) {
	return request({ url: '/app/Chanpin/update',method: 'post',data: params})
}


//修改

export function gettijiaoInfo(params) {
	return request({ url: '/app/Chanpin/getUpdateInfo',method: 'post',data: params})
}
export function getUpdateInfo(params) {
	return request({ url: '/app/Chanpin/getUpdateInfo',method: 'post',data: params})
}



//删除
export function del(params) {
	return request({ url: '/app/Chanpin/delete',method: 'post',data: params})
}



//查看详情
export function detail(params) {
	return request({ url: '/app/Chanpin/detail',method: 'post',data: params})
}

//提交
export function tijiao(params) {
	return request({ url: '/app/Chanpin/chanpin_tijiao',method: 'post',data: params})
}
//撤销
export function chexiao(params) {
	return request({ url: '/app/Chanpin/chanpin_chexiao',method: 'post',data: params})
}

//审核
export function shenhe(params) {
	return request({ url: '/app/Chanpin/chanpin_shenhe',method: 'post',data: params})
}
//反审核
export function fanshenhe(params) {
	return request({ url: '/app/Chanpin/chanpin_fanshenhe',method: 'post',data: params})
}

